package lab02.test22;

/**
 * Created by Adminitrator on 2017/10/30.
 */
public class Test {
    public static void main(String[] args) {
        //给一串字符串
    String S="bdijsdbc234NJBBI&&&";
    int i;
    for (i=0;i<S.length();i++){
        char T=S.charAt(i);
        if (T>='a'&&T<='z'){
            System.out.print((char)(T-32));
        }else if (T>='A'&&T<='Z'){
            System.out.print((char)(T+32));
        }
         if (T>'0'&&T<='9'){
            System.out.print("0");
        }else {
            System.out.print("#");
        }
    }
    }
}
